<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Projekti</title>
        <h:outputStylesheet library="css" name="styles.css"/> 
    </h:head>
    <h:body>
        <ui:include src="menuBar.xhtml"/>
        <h:form>
            <p:panel header="Projekti" styleClass="headerPanel">
                <h:outputLabel value="Nema obavestenja" rendered="#{projectBean.noProjects()}"/>
                <div class="infoFrag">
                    <ui:repeat value="#{projectBean.projectList}" var="p">
                        <p:fieldset legend="#{p.naziv}" toggleable="true" toggleSpeed="500" collapsed="true">
                            <h:outputText value="#{p.opis}"/>
                        </p:fieldset>
                        <br/>
                    </ui:repeat>
                </div>
            </p:panel>
        </h:form>
    </h:body>
</html>

